package com.itheima.homework1.demo4;

public class Test {
    public static void main(String[] args) {
        //创建Mouse对象
        Computer computer = new Computer();
        Mouse mouse = new Mouse();
        KeyBoard keyBoard = new KeyBoard();

        computer.use(keyBoard);
        System.out.println("------------");
        computer.use(mouse);
        computer.use(mouse);

    }
}
